@extends('admin/layout/index')

@section('title')
	后台管理人员
@endsection

@section('content')
	<div class="mws-panel grid_8">
    	<div class="mws-panel-header">
        	<span><i class="icon-table"></i>管理人员</span>
        </div>
        <div class="mws-panel-body no-padding">
            <table class="mws-table">
                <thead>
                    <tr>
                        <th>A_UID</th>
                        <th>管理员名</th>
                        <th>密码</th>
                        <th>头像</th>
                        <th>权限</th>
                        <th>编辑</th>
                    </tr>
                </thead>
                <tbody>
                	@foreach($data as $k => $v)
	                    <tr>
	                        <td>{{$v['a_uid']}}</td>
	                        <td>{{$v['a_uname']}}</td>
	                        <td>{{$v['a_upassword']}}</td>
	                        <td>@if(!empty($v['a_upic'])) <img src="/public/images/{{$v['a_upic']}}" alt="" width="60px"> @else 无 @endif</td>
	                        <td>{{$v['a_uauth']}}</td>
	                        <td>
	                        	<a href="/admin/a_user/delete/{{$v['a_uid']}}" style="color:black;font-size:23px" title="删除"><i class="icon-trash"></i></a>　
	                        	<a href="/admin/a_user/edit/{{$v['a_uid']}}" style="color:black;font-size:23px" title="修改"><i class="icon-pencil-2"></i></a>
	                        </td>
	                    </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
@endsection